#!/bin/bash
hexo clean
rm -rf ./node_modules/_hexo-sliding-spoiler\@1.2.1\@hexo-sliding-spoiler/index.js
rm -rf ./node_modules/_hexo-sliding-spoiler\@1.2.1\@hexo-sliding-spoiler/assets/spoiler.js
rm -rf ./node_modules/_hexo-sliding-spoiler\@1.2.1\@hexo-sliding-spoiler/assets/spoiler.css

cp ./themes/index.js ./node_modules/_hexo-sliding-spoiler\@1.2.1\@hexo-sliding-spoiler/
cp ./themes/spoiler.js ./node_modules/_hexo-sliding-spoiler\@1.2.1\@hexo-sliding-spoiler/assets/
cp ./themes/spoiler.css ./node_modules/_hexo-sliding-spoiler\@1.2.1\@hexo-sliding-spoiler/assets/

cp ./themes/mylogo.jpg ./node_modules/_hexo-theme-ayer@1.8.9@hexo-theme-ayer/source/images
cp ./themes/myfavicon.ico ./node_modules/_hexo-theme-ayer@1.8.9@hexo-theme-ayer/source/images

hexo s